<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <!-- call 方法 -->
    <script>
      function fn(x, y) {
        console.log('我想喝手磨咖啡')
        console.log(this)
        console.log('b3', x + y)
      }
      let o = {
        name: 'andy'
      }
      // a1
      // fn.call()
      // a2
      fn.call(o, 1, 2)
    </script>
  </body>
</html>
